// import request from '@/utils/request'
import request1 from '@/utils/request2'

// 库位信息
export const getdetails = (params) =>
  request1.get('location/pageDetail', { params })

// 删除库位
export const delku = (id) =>
  request1.delete('location', {
    params: { ids: [id] }
  })

// 修改库位
export const editku = (data) => request1.put('location', data)

// 查询全部库区
export const list = () =>
  request1.get('warehouse/list', {
    params: { status: 1 }
  })
  export const list1 = (data) => request1.get('area/list', {
    params: data
  })

// KW
export const getKw = () => request1.get('codeFactory/next/KW')

// 新增库位
export const addStore=data=>request1.post('location',data)


